import request from "@/request";

const orderInfoQueryPage = (queryInfo: any) =>
  request.post("/order/pageQuery", queryInfo);
const orderInfoSave = (saveInfo: any) => request.post("/order/save", saveInfo);
const orderInfoUpdate = (updateInfo: any) =>
  request.post("/order/update", updateInfo);
const orderInfoDelete = (deleteInfo: any) =>
  request.post("/order/delete", deleteInfo);
const orderInfoGetOne = (id: number) =>
  request.get("/order/selectOne", {
    params: {
      id: id,
    },
  });
const quickDelete = (withPreCode: string) =>
  request.get("/order/quickDelete", {
    params: {
      withPreCode: withPreCode,
    },
  });
const quickAddReq = (withPreCode: string) =>
  request.get("/order/quickAdd", {
    params: {
      withPreCode: withPreCode,
    },
  });
export {
  orderInfoQueryPage,
  orderInfoSave,
  orderInfoUpdate,
  orderInfoDelete,
  orderInfoGetOne,
  quickDelete,
  quickAddReq,
};
